home *** CD-ROM | disk | FTP | other *** search
- on(release){
- if(_root.selectkey == true)
- {
- if(_root.controls[_root.whichkey + "key"] == _root.controls.bombkey)
- {
- _root.controls.bombkey = "Z";
- _root.bombkey = 90;
- }
- if(_root.controls[_root.whichkey + "key"] == _root.controls.firekey)
- {
- _root.controls.firekey = "Space";
- _root.firekey = 32;
- }
- if(_root.controls[_root.whichkey + "key"] == _root.controls.missilekey)
- {
- _root.controls.missilekey = "Space";
- _root.missilekey = 32;
- }
- if(_root.controls[_root.whichkey + "key"] == _root.controls.laserkey)
- {
- _root.controls.laserkey = "C";
- _root.missilekey = 67;
- }
- if(_root.controls[_root.whichkey + "key"] == _root.controls.targetkey)
- {
- _root.controls.targetkey = "D";
- _root.targetkey = 68;
- }
- if(_root.controls[_root.whichkey + "key"] == _root.controls.targetkey2)
- {
- _root.controls.target2key = "S";
- _root.targetkey = 83;
- }
- if(_root.controls[_root.whichkey + "key"] == _root.controls.autokey)
- {
- _root.controls.autokey = "A";
- _root.autokey = 65;
- }
- if(_root.controls[_root.whichkey + "key"] == _root.controls.pausekey)
- {
- _root.controls.pausekey = "P";
- _root.pausekey = 80;
- }
- }
- _root.selectkey = true;
- _root.whichkey = "fire";
- _root.controls.firekey = "";
- }
-